close all
clear all
clc
load('times')

timesbar = times./repmat(sum(times,2),1,11)*100;
figure;
bar(timesbar')
legend('100','250','500','1000')
set(gca,'XTick',1:11)
set(gca,'XTickLabel',{'0','1','2','3','4','5','6','7','8','9','99'})
xlabel('mandelbrot')
ylabel('Aandeel in de uitvoeringstijd (%)')

figure;
times=[times sum(times,2)];
xcoord=[100 250 500 1000];
semilogx(xcoord,times,'o-','Linewidth',1)
xlabel('steps')
ylabel('uitvoeringstijd (s)')
set(gca,'XTick',xcoord)
set(gca,'XTickLabel',{'100','250','500','1000'})
legend('0','1','2','3','4','5','6','7','8','9','99','totaal','Location','NorthWest')

figure;
loglog(xcoord,times,'o-','Linewidth',1)
xlabel('steps')
ylabel('uitvoeringstijd (s)')
set(gca,'XTick',xcoord)
set(gca,'XTickLabel',{'100','250','500','1000'})
